//
//  RankedImage.swift
//  RssFly
//
//  Created by shen on 2023/10/17.
//

import Foundation

struct RankedImage {
    var url: URL
    var rank = 0
    var width: Int?
    var height: Int?
}

extension Array where Element == RankedImage {
    var topRanked: RankedImage? {
        sorted(by: { a, b in
            a.rank > b.rank
        }).first
    }
}
